CC=gcc
CFLAGS= -Wall -O -g

OBJ= main.o

TARGET= a.out

all: ${TARGET}
${TARGET} : ${OBJ}
	${CC} -o $@ $^

main.o: main.c
	$(CC) $(CFLAGS) -c $< -o $@

.PHONY: clean

clean:
	rm -f $(OBJ)


